Skip to content

Fix Algolia search button alignment#1406

Closed
Abhash-Chakraborty wants to merge 1 commit into
recodehive:mainfrom
Abhash-Chakraborty:codex/fix-algolia-search-1405
Closed

Fix Algolia search button alignment#1406
Abhash-Chakraborty wants to merge 1 commit into
recodehive:mainfrom
Abhash-Chakraborty:codex/fix-algolia-search-1405

Conversation

@Abhash-Chakraborty

Copy link
Copy Markdown
Member

Summary

  • Keep the Algolia SiteSearch icon inside the navbar search button and preserve click/focus behavior.
  • Disable Algolia insights for this navbar search to avoid fetch-based runtime overlays in dev.
  • Skip Pinterest tracking on localhost and disable Ideal Image in dev to avoid local runtime overlays.

Closes #1405

Testing

  • npm run build
  • Local browser CDP check: search icon remains within the button, clicking opens the modal and focuses the input, no Failed to fetch runtime exception.

Copilot AI review requested due to automatic review settings May 5, 2026 06:53
@vercel

vercel Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

@Abhash-Chakraborty is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels May 5, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone May 5, 2026
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1405:

  • Labels: level 1, recode
  • Milestone: recode:launch 3.0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a UI alignment issue with the Algolia SiteSearch button in the Docusaurus navbar and reduces noisy/fragile dev-time behavior by disabling certain third-party runtime integrations during local development.

Changes:

  • Adds targeted navbar CSS to keep the Algolia SiteSearch icon aligned within the search button while preserving click/focus behavior.
  • Disables Algolia SiteSearch insights for the navbar integration and adds optional cleanup via SiteSearch.destroy on unmount.
  • Skips Pinterest tracking on localhost and disables @docusaurus/plugin-ideal-image in development.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
static/pinterest-init.js Skips loading Pinterest tracking on localhost to avoid local dev overlays/runtime issues.
src/css/custom.css Adds scoped navbar CSS to fix Algolia SiteSearch button/icon alignment.
src/components/AlgoliaSiteSearch/index.tsx Disables insights and attempts cleanup on unmount to reduce dev-time fetch/overlay issues.
docusaurus.config.ts Disables Ideal Image plugin in dev to avoid development-time runtime overlays.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Abhash-Chakraborty Abhash-Chakraborty deleted the codex/fix-algolia-search-1405 branch May 5, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞[Bug]: Missalignment in the Agolia feature

2 participants